Creating a project for the JDK sources

To properly follow references into the JDK sources, you need to create a project for the JDK API sources (in

<your_jdk_directory>/src/ directory) and then add it to the existing project as a subproject.

| Note
| You will need at least JDK 1.1.x for the example project. If you don't have an up-to-date JDK, you can download one from: http://java.sun.com.

A project for the JDK API sources is, like other libraries, a typical browsing-only situation.
In the Launch Pad

- To set up a SNiFF+ project for the JDK sources, choose the menu command
Project > New Project... > with Wizard...

In the Project Setup Wizard
The Wizard starts by asking you to select how you intend to use the new SNiFF+ Project.

- Select Browsing-only Setup, and press Next.
The "Select file types" page appears.

In the "Select file types" page

- Select Java and press Next.

In the "Specify project location and name" page

Press the Browse button next to the Source code root directory field and navigate to

<your_jdk_directory>/src/
Open the <your_jdk_directory>/src directory and press Select.
Enter jdk_src_java as a name for the project in the Project Name field.
In this tutorial, we will use jdk_src_java to refer to the project.
Press Next.
If you do not have write permissions for the source code root directory, the Specify writable location for SNiFF+ Generated Files page appears. In the Generate Directory root field, press Browse... and specify a root directory for which you have write permission.
In the "Specify Java Make Attributes" page
Leave this field blank.

- Press Next.

In the "Project Setup Summary" page
This page summarizes your specifications for the new SNiFF+ Java Project.

Make sure that your Project Setup Summary page is similar to the following. If it isn't, please go back to the beginning of the Wizard and start again.

2. Press Finish.

If you are running Personal SNiFF+
If you are not running Personal SNiFF+, ignore the step below and continue with If you have a SNiFF+ License other than one for Personal SNiFF+.

- A dialog appears warning you that you can load a maximum of 200 files. The example projects are an exception so you can safely ignore this warning and press Ok. This project has been created and then closed. You will add the

jdk_src_java project to the OfficeApp project later on.

| Note on Screenshots
| Please note that screenshots in the following chapters were made using a Java JDK 1.1.7. project. If you are using a different JDK version, there will be differences in the symbols shown.

If you have a SNiFF+ License other than one for Personal SNiFF+
If you are running Personal SNiFF+, continue with Adding the JDK projects to your project.

In the dialog that appears asking if you want to generate cross reference information, press No.
Cross Reference information will be automatically generated when you open the Cross Referencer later on.
When the SNiFF+ Project Setup Wizard has finished creating the project for you, a Project Editor is automatically opened, and the project structure of the new project is displayed.
You won't need the jdk_src_java project open in SNiFF+ so in the Launch Pad, select the

jdk_src_java.proj and choose Project > Close Project jdk_src_java.proj to close the project.
You will add the jdk_src_java project to the OfficeApp project later on.